﻿<%@ Page Title="Thêm mới tác giả" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true" CodeBehind="CreateAlbum.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Editor.Gallery.CreateAlbum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .form-wrap, .form-field { width: 70%; }
    </style>
    <script type="text/javascript">
        $(function ($) {
            $('textarea.tinymce').tinymce({
                // Location of TinyMCE script
                script_url: '/Library/tinymce/tiny_mce.js',

                // General options
                theme: "advanced",
                skin: "themepixels",
                width: "100%",
                plugins: "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
                inlinepopups_skin: "themepixels",
                // Theme options
                theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,outdent,indent,blockquote,formatselect,fontselect,fontsizeselect",
                theme_advanced_buttons2: "pastetext,pasteword,|,bullist,numlist,|,undo,redo,|,link,unlink,image,help,code,|,preview,|,forecolor,backcolor,removeformat,|,charmap,media,|,fullscreen",
                theme_advanced_buttons3: "",
                theme_advanced_toolbar_location: "top",
                theme_advanced_toolbar_align: "left",
                theme_advanced_statusbar_location: "bottom",
                theme_advanced_resizing: true,
                height: 300,

                // Example content CSS (should be your site CSS)
                //content_css: "css/plugins/tinymce.css",

                // Drop lists for link/image/media/template dialogs
                //template_external_list_url: "lists/template_list.js",
                //external_link_list_url: "lists/link_list.js",
                //external_image_list_url: "lists/image_list.js",
                //media_external_list_url: "lists/media_list.js",

                // Replace values for the template plugin
                template_replace_values: {
                    username: "Some User",
                    staffid: "991234"
                }
            });

            $('.editornav a').click(function () {
                $('.editornav li.current').removeClass('current');
                $(this).parent().addClass('current');
                if ($(this).hasClass('visual'))
                    $('#txtDesc').tinymce().show();
                else
                    $('#txtDesc').tinymce().hide();
                return false;
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphTitle" runat="server">
    <h1>Thêm mới tác giả</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ctphMain" runat="server">
    <div class="full">
        <div class="form-wrap">
            <div style="display: none;" class="lblError" runat="server" id="lblError"></div>
            <div class="form-field">
                <label>
                    Tên tác giả</label>
                <asp:TextBox ID="txtAlbumName" Text="" Style="width: 99%; font-size: 1.7em;" CssClass="TitleBlog" runat="server"></asp:TextBox>
            </div>
            <div class="form-field">
                <label>
                    Đôi điều về tác giả</label>
                <div>
                    <asp:TextBox ID="txtDesc" ClientIDMode="Static" runat="server" TextMode="MultiLine" Width="99%" CssClass="tinymce"></asp:TextBox>
                </div>
            </div>
            <div class="form-field">
                <p class="submitButton">
                    <asp:Button ID="BtnCreate" runat="server" CssClass="btn btn-primary" Text="Thêm mới" OnClick="BtnCreateClick" />
                </p>
            </div>
        </div>
    </div>
</asp:Content>
